/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * VentanaNuevaSesion.java
 *
 * Created on 13-may-2010, 1:48:52
 */

package poker;

import java.awt.FileDialog;
import java.io.Serializable;
import java.util.Vector;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JTextField;
import prop.Configuracion;

/**
 *
 * @author pol
 */
public class VentanaNuevaSesion extends javax.swing.JFrame implements Serializable {
    private Ventana padre;
    private Configuracion conf;
    private int nJug, nJugMin, nJugMax;
    private DriverDomainInterfaz ddi;
    private Vector<JTextField> vNom, vEst;
    private Vector<JLabel> vNum;
    private Vector<JCheckBox> vChe;
    private Vector<JButton> vBut;

    public String pedirFichero() {
        FileDialog fd = new FileDialog(this, "Seleccionar estrategia", FileDialog.LOAD);
        fd.show();
        return fd.getDirectory() + fd.getFile();
    }

    /** Creates new form VentanaNuevaSesion */
    public VentanaNuevaSesion(Ventana padre, Configuracion conf, DriverDomainInterfaz ddi) {
        initComponents();

        this.padre = padre;
        this.ddi = ddi;
        this.conf = conf;

        this.resize(540, 470);
        
        nJug = 2;

        vNom = new Vector<JTextField>();
        vNom.add(nomm0);
        vNom.add(nomm1);
        vNom.add(nomm2);
        vNom.add(nomm3);
        vNom.add(nomm4);
        vNom.add(nomm5);
        vNom.add(nomm6);
        vNom.add(nomm7);

        vEst = new Vector<JTextField>();
        vEst.add(estt0);
        vEst.add(estt1);
        vEst.add(estt2);
        vEst.add(estt3);
        vEst.add(estt4);
        vEst.add(estt5);
        vEst.add(estt6);
        vEst.add(estt7);

        vNum = new Vector<JLabel>();
        vNum.add(numm0);
        vNum.add(numm1);
        vNum.add(numm2);
        vNum.add(numm3);
        vNum.add(numm4);
        vNum.add(numm5);
        vNum.add(numm6);
        vNum.add(numm7);
        
        vChe = new Vector<JCheckBox>();
        vChe.add(checkk0);
        vChe.add(checkk1);
        vChe.add(checkk2);
        vChe.add(checkk3);
        vChe.add(checkk4);
        vChe.add(checkk5);
        vChe.add(checkk6);
        vChe.add(checkk7);

        vBut = new Vector<JButton>();
        vBut.add(butt0);
        vBut.add(butt1);
        vBut.add(butt2);
        vBut.add(butt3);
        vBut.add(butt4);
        vBut.add(butt5);
        vBut.add(butt6);
        vBut.add(butt7);
        
        this.setResizable(false);
        this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
        this.setVisible(true);
        
        numJugs.setValue(nJug);

        listaJugadores();
    }

    private void listaJugadores() {
        for (int i = 0; i < nJug; ++i) {
            vNom.get(i).setVisible(true);
            vEst.get(i).setVisible(true);
            vChe.get(i).setVisible(true);
            vBut.get(i).setVisible(true);
            vEst.get(i).setVisible(true);
            vNum.get(i).setVisible(true);

            vEst.get(i).setEditable(false);
            if (vChe.get(i).isSelected()) {
                vEst.get(i).setEnabled(true);
                vBut.get(i).setEnabled(true);
            }
            else {
                vEst.get(i).setEnabled(false);
                vBut.get(i).setEnabled(false);
            }
        }
        for (int i = nJug; i < 8; ++i) {
            vNom.get(i).setVisible(false);
            vEst.get(i).setVisible(false);
            vChe.get(i).setVisible(false);
            vBut.get(i).setVisible(false);
            vEst.get(i).setVisible(false);
            vNum.get(i).setVisible(false);
        }

        vEst.get(0).setVisible(false);
        vBut.get(0).setVisible(false);
        vChe.get(0).setVisible(false);
    }

    private String comprueba() {
        for (int i = 0; i < nJug; ++i)
            if (vNom.get(i).getText().matches(""))
                return "Todos los jugadores deben tener nombre";
        for (int i = 0; i < nJug; ++i)
            for (int j = i + 1; j < nJug; ++j)
                if (vNom.get(i).getText().matches(vNom.get(j).getText()))
                    return "No pueden haber dos jugadores con el mismo nombre";
        for (int i = 0; i < nJug; ++i)
            if (vChe.get(i).isSelected() && vEst.get(i).getText().matches(""))
                return "Debes elegir las estrategias de todos los jugadores maquina";
        if (nomSesion.getText().equals(""))
            return "Debes poner un nombre a la sesion";
        return "";
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by(int)nJugSpin.getValue()) the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        numm0 = new javax.swing.JLabel();
        estt0 = new javax.swing.JTextField();
        checkk0 = new javax.swing.JCheckBox();
        nomm0 = new javax.swing.JTextField();
        butt0 = new javax.swing.JButton();
        numm1 = new javax.swing.JLabel();
        estt1 = new javax.swing.JTextField();
        checkk1 = new javax.swing.JCheckBox();
        nomm1 = new javax.swing.JTextField();
        butt1 = new javax.swing.JButton();
        numm2 = new javax.swing.JLabel();
        estt2 = new javax.swing.JTextField();
        checkk2 = new javax.swing.JCheckBox();
        nomm2 = new javax.swing.JTextField();
        butt2 = new javax.swing.JButton();
        numm3 = new javax.swing.JLabel();
        estt3 = new javax.swing.JTextField();
        checkk3 = new javax.swing.JCheckBox();
        nomm3 = new javax.swing.JTextField();
        butt3 = new javax.swing.JButton();
        numm4 = new javax.swing.JLabel();
        estt4 = new javax.swing.JTextField();
        checkk4 = new javax.swing.JCheckBox();
        nomm4 = new javax.swing.JTextField();
        butt4 = new javax.swing.JButton();
        numm5 = new javax.swing.JLabel();
        estt5 = new javax.swing.JTextField();
        checkk5 = new javax.swing.JCheckBox();
        nomm5 = new javax.swing.JTextField();
        butt5 = new javax.swing.JButton();
        numm6 = new javax.swing.JLabel();
        estt6 = new javax.swing.JTextField();
        checkk6 = new javax.swing.JCheckBox();
        nomm6 = new javax.swing.JTextField();
        butt6 = new javax.swing.JButton();
        numm7 = new javax.swing.JLabel();
        estt7 = new javax.swing.JTextField();
        checkk7 = new javax.swing.JCheckBox();
        nomm7 = new javax.swing.JTextField();
        butt7 = new javax.swing.JButton();
        nomSesion = new javax.swing.JTextField();
        jLabel11 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        numJugs = new javax.swing.JSpinner();
        jLabel9 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        jLabel13 = new javax.swing.JLabel();
        jLabel14 = new javax.swing.JLabel();
        butCancel = new javax.swing.JButton();
        butAceptar = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setResizable(false);
        addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowClosed(java.awt.event.WindowEvent evt) {
                formWindowClosed(evt);
            }
        });
        getContentPane().setLayout(null);

        numm0.setText("1");
        getContentPane().add(numm0);
        numm0.setBounds(20, 130, 20, 14);
        getContentPane().add(estt0);
        estt0.setBounds(260, 130, 150, 20);

        checkk0.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                checkk0StateChanged(evt);
            }
        });
        getContentPane().add(checkk0);
        checkk0.setBounds(220, 130, 21, 21);
        getContentPane().add(nomm0);
        nomm0.setBounds(50, 130, 150, 20);

        butt0.setText("Examinar...");
        butt0.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                butt0ActionPerformed(evt);
            }
        });
        getContentPane().add(butt0);
        butt0.setBounds(410, 130, 110, 23);

        numm1.setText("2");
        getContentPane().add(numm1);
        numm1.setBounds(20, 160, 20, 14);
        getContentPane().add(estt1);
        estt1.setBounds(260, 160, 150, 20);

        checkk1.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                checkk1StateChanged(evt);
            }
        });
        getContentPane().add(checkk1);
        checkk1.setBounds(220, 160, 21, 21);
        getContentPane().add(nomm1);
        nomm1.setBounds(50, 160, 150, 20);

        butt1.setText("Examinar...");
        butt1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                butt1ActionPerformed(evt);
            }
        });
        getContentPane().add(butt1);
        butt1.setBounds(410, 160, 110, 23);

        numm2.setText("3");
        getContentPane().add(numm2);
        numm2.setBounds(20, 190, 20, 14);
        getContentPane().add(estt2);
        estt2.setBounds(260, 190, 150, 20);

        checkk2.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                checkk2StateChanged(evt);
            }
        });
        getContentPane().add(checkk2);
        checkk2.setBounds(220, 190, 21, 21);
        getContentPane().add(nomm2);
        nomm2.setBounds(50, 190, 150, 20);

        butt2.setText("Examinar...");
        butt2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                butt2ActionPerformed(evt);
            }
        });
        getContentPane().add(butt2);
        butt2.setBounds(410, 190, 110, 23);

        numm3.setText("4");
        getContentPane().add(numm3);
        numm3.setBounds(20, 220, 20, 14);
        getContentPane().add(estt3);
        estt3.setBounds(260, 220, 150, 20);

        checkk3.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                checkk3StateChanged(evt);
            }
        });
        getContentPane().add(checkk3);
        checkk3.setBounds(220, 220, 21, 21);
        getContentPane().add(nomm3);
        nomm3.setBounds(50, 220, 150, 20);

        butt3.setText("Examinar...");
        butt3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                butt3ActionPerformed(evt);
            }
        });
        getContentPane().add(butt3);
        butt3.setBounds(410, 220, 110, 23);

        numm4.setText("5");
        getContentPane().add(numm4);
        numm4.setBounds(20, 250, 20, 14);
        getContentPane().add(estt4);
        estt4.setBounds(260, 250, 150, 20);

        checkk4.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                checkk4StateChanged(evt);
            }
        });
        getContentPane().add(checkk4);
        checkk4.setBounds(220, 250, 21, 21);
        getContentPane().add(nomm4);
        nomm4.setBounds(50, 250, 150, 20);

        butt4.setText("Examinar...");
        butt4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                butt4ActionPerformed(evt);
            }
        });
        getContentPane().add(butt4);
        butt4.setBounds(410, 250, 110, 23);

        numm5.setText("6");
        getContentPane().add(numm5);
        numm5.setBounds(20, 280, 20, 14);
        getContentPane().add(estt5);
        estt5.setBounds(260, 280, 150, 20);

        checkk5.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                checkk5StateChanged(evt);
            }
        });
        getContentPane().add(checkk5);
        checkk5.setBounds(220, 280, 21, 21);
        getContentPane().add(nomm5);
        nomm5.setBounds(50, 280, 150, 20);

        butt5.setText("Examinar...");
        butt5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                butt5ActionPerformed(evt);
            }
        });
        getContentPane().add(butt5);
        butt5.setBounds(410, 280, 110, 23);

        numm6.setText("7");
        getContentPane().add(numm6);
        numm6.setBounds(20, 310, 20, 14);
        getContentPane().add(estt6);
        estt6.setBounds(260, 310, 150, 20);

        checkk6.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                checkk6StateChanged(evt);
            }
        });
        getContentPane().add(checkk6);
        checkk6.setBounds(220, 310, 21, 21);
        getContentPane().add(nomm6);
        nomm6.setBounds(50, 310, 150, 20);

        butt6.setText("Examinar...");
        butt6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                butt6ActionPerformed(evt);
            }
        });
        getContentPane().add(butt6);
        butt6.setBounds(410, 310, 110, 23);

        numm7.setText("8");
        getContentPane().add(numm7);
        numm7.setBounds(20, 340, 20, 14);
        getContentPane().add(estt7);
        estt7.setBounds(260, 340, 150, 20);

        checkk7.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                checkk7StateChanged(evt);
            }
        });
        getContentPane().add(checkk7);
        checkk7.setBounds(220, 340, 21, 21);
        getContentPane().add(nomm7);
        nomm7.setBounds(50, 340, 150, 20);

        butt7.setText("Examinar...");
        butt7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                butt7ActionPerformed(evt);
            }
        });
        getContentPane().add(butt7);
        butt7.setBounds(410, 340, 110, 23);

        nomSesion.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                nomSesionActionPerformed(evt);
            }
        });
        getContentPane().add(nomSesion);
        nomSesion.setBounds(190, 20, 180, 20);

        jLabel11.setText("Nombre de la sesión");
        getContentPane().add(jLabel11);
        jLabel11.setBounds(20, 20, 150, 14);

        jLabel12.setText("Cantidad de jugadores");
        getContentPane().add(jLabel12);
        jLabel12.setBounds(20, 50, 150, 14);

        numJugs.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                numJugsStateChanged(evt);
            }
        });
        getContentPane().add(numJugs);
        numJugs.setBounds(190, 50, 60, 18);

        jLabel9.setText("#");
        getContentPane().add(jLabel9);
        jLabel9.setBounds(20, 100, 20, 14);

        jLabel10.setText("Nombre del jugador");
        getContentPane().add(jLabel10);
        jLabel10.setBounds(50, 100, 150, 14);

        jLabel13.setText("Máq.?");
        getContentPane().add(jLabel13);
        jLabel13.setBounds(210, 100, 40, 14);

        jLabel14.setText("Estrategia de la máquina");
        getContentPane().add(jLabel14);
        jLabel14.setBounds(260, 100, 210, 14);

        butCancel.setText("Cancelar");
        butCancel.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                butCancelActionPerformed(evt);
            }
        });
        getContentPane().add(butCancel);
        butCancel.setBounds(240, 400, 130, 23);

        butAceptar.setText("Aceptar");
        butAceptar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                butAceptarActionPerformed(evt);
            }
        });
        getContentPane().add(butAceptar);
        butAceptar.setBounds(390, 400, 130, 23);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void formWindowClosed(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowClosed
        //padre.setEnabled(true);
    }//GEN-LAST:event_formWindowClosed

    private void nomSesionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_nomSesionActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_nomSesionActionPerformed

    private void butCancelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_butCancelActionPerformed
        this.dispose();
}//GEN-LAST:event_butCancelActionPerformed

    private void numJugsStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_numJugsStateChanged
        int val = Integer.parseInt(numJugs.getValue().toString());
        val = Math.max(val, 2);
        val = Math.min(val, 8);
        numJugs.setValue(val);
        nJug = val;
        listaJugadores();
    }//GEN-LAST:event_numJugsStateChanged

    private void butt0ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_butt0ActionPerformed
        String f = pedirFichero();
        if (!f.equals("nullnull")) vEst.get(0).setText(f);
    }//GEN-LAST:event_butt0ActionPerformed

    private void butAceptarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_butAceptarActionPerformed
        String s = comprueba();
        if (s.equals("")) {
            Vector<JugadorPoker> v = new Vector<JugadorPoker>();
            for (int i = 0; i < nJug; ++i) {
                JugadorPoker j = null;
                if (vChe.get(i).isSelected()) {
                    EstrategiaPoker est = new EstrategiaPoker();
                    DataManagerEstrategiaPoker dmest = new DataManagerEstrategiaPoker(vEst.get(i).getText());
                    try {
                        dmest.leerEstrategia(est);
                        j = new JugadorMaquinaPoker();
                        ((JugadorMaquinaPoker) j).setEstrategia(est);
                    }
                    catch (Exception e) {
                        JOptionPane.showMessageDialog(this, "Hay un error en el fichero de estrategia");
                        return;
                    }
                }
                else j = new JugadorPoker();
                j.setNombre(vNom.get(i).getText());
                v.add(j);
            }
            ddi.iniciarSesion(v, conf.getInt("NumComodines"), conf.getInt("NumPartidas"), nomSesion.getText());
            this.dispose();
        }
        else JOptionPane.showMessageDialog(this, "Error: " + s);
    }//GEN-LAST:event_butAceptarActionPerformed

    private void checkk0StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_checkk0StateChanged
        listaJugadores();
    }//GEN-LAST:event_checkk0StateChanged

    private void checkk1StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_checkk1StateChanged
        listaJugadores();
    }//GEN-LAST:event_checkk1StateChanged

    private void checkk2StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_checkk2StateChanged
        listaJugadores();
    }//GEN-LAST:event_checkk2StateChanged

    private void checkk3StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_checkk3StateChanged
        listaJugadores();
    }//GEN-LAST:event_checkk3StateChanged

    private void checkk4StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_checkk4StateChanged
        listaJugadores();
    }//GEN-LAST:event_checkk4StateChanged

    private void checkk5StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_checkk5StateChanged
        listaJugadores();
    }//GEN-LAST:event_checkk5StateChanged

    private void checkk6StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_checkk6StateChanged
        listaJugadores();
    }//GEN-LAST:event_checkk6StateChanged

    private void checkk7StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_checkk7StateChanged
        listaJugadores();
    }//GEN-LAST:event_checkk7StateChanged

    private void butt1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_butt1ActionPerformed
        String f = pedirFichero();
        if (!f.equals("nullnull")) vEst.get(1).setText(f);
    }//GEN-LAST:event_butt1ActionPerformed

    private void butt2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_butt2ActionPerformed
        String f = pedirFichero();
        if (!f.equals("nullnull")) vEst.get(2).setText(f);
    }//GEN-LAST:event_butt2ActionPerformed

    private void butt3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_butt3ActionPerformed
        String f = pedirFichero();
        if (!f.equals("nullnull")) vEst.get(3).setText(f);
    }//GEN-LAST:event_butt3ActionPerformed

    private void butt4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_butt4ActionPerformed
        String f = pedirFichero();
        if (!f.equals("nullnull")) vEst.get(4).setText(f);
    }//GEN-LAST:event_butt4ActionPerformed

    private void butt5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_butt5ActionPerformed
        String f = pedirFichero();
        if (!f.equals("nullnull")) vEst.get(5).setText(f);
    }//GEN-LAST:event_butt5ActionPerformed

    private void butt6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_butt6ActionPerformed
        String f = pedirFichero();
        if (!f.equals("nullnull")) vEst.get(6).setText(f);
    }//GEN-LAST:event_butt6ActionPerformed

    private void butt7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_butt7ActionPerformed
        String f = pedirFichero();
        if (!f.equals("nullnull")) vEst.get(7).setText(f);
    }//GEN-LAST:event_butt7ActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton butAceptar;
    private javax.swing.JButton butCancel;
    private javax.swing.JButton butt0;
    private javax.swing.JButton butt1;
    private javax.swing.JButton butt2;
    private javax.swing.JButton butt3;
    private javax.swing.JButton butt4;
    private javax.swing.JButton butt5;
    private javax.swing.JButton butt6;
    private javax.swing.JButton butt7;
    private javax.swing.JCheckBox checkk0;
    private javax.swing.JCheckBox checkk1;
    private javax.swing.JCheckBox checkk2;
    private javax.swing.JCheckBox checkk3;
    private javax.swing.JCheckBox checkk4;
    private javax.swing.JCheckBox checkk5;
    private javax.swing.JCheckBox checkk6;
    private javax.swing.JCheckBox checkk7;
    private javax.swing.JTextField estt0;
    private javax.swing.JTextField estt1;
    private javax.swing.JTextField estt2;
    private javax.swing.JTextField estt3;
    private javax.swing.JTextField estt4;
    private javax.swing.JTextField estt5;
    private javax.swing.JTextField estt6;
    private javax.swing.JTextField estt7;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JTextField nomSesion;
    private javax.swing.JTextField nomm0;
    private javax.swing.JTextField nomm1;
    private javax.swing.JTextField nomm2;
    private javax.swing.JTextField nomm3;
    private javax.swing.JTextField nomm4;
    private javax.swing.JTextField nomm5;
    private javax.swing.JTextField nomm6;
    private javax.swing.JTextField nomm7;
    private javax.swing.JSpinner numJugs;
    private javax.swing.JLabel numm0;
    private javax.swing.JLabel numm1;
    private javax.swing.JLabel numm2;
    private javax.swing.JLabel numm3;
    private javax.swing.JLabel numm4;
    private javax.swing.JLabel numm5;
    private javax.swing.JLabel numm6;
    private javax.swing.JLabel numm7;
    // End of variables declaration//GEN-END:variables

}
